﻿using ReadBooks.Comm;
using ReadBooks.Manager.Core;
using System;
using System.Collections.Generic;
using System.Text;

namespace ReadBooks.Teacher.Core
{
    public class Teacher: EntityBase
    {
        public string Name { get; set; }
        /// <summary>
        /// 是否男性：false为女性，null为未填
        /// </summary>
        public bool? IsMale { get; set; }
        public virtual DateTime CreationTime { get; set; }
    }

    public class ClassInfo : EntityBase
    {
        public string Name { get; set; }
        public int Grades { get; set; }

        /// <summary>
        /// 学校id
        /// </summary>
        public long SchoolId { get; set; }
        public Teacher Teacher { get; set; }

        public long TeacherId { get; set; }
        public virtual DateTime CreationTime { get; set; }
    }
    public class TeacherBooks : EntityBase
    {
        public long BookId { get; set; }
        public long TeacherId { get; set; }
        public Teacher Teacher { get; set; }

        public virtual DateTime CreationTime { get; set; }


    }
    public class ClassBooks : EntityBase
    {
        public ClassInfo ClassInfo { get; set; }
        public long ClassInfoId { get; set; }
        public long BookId { get; set; }

        public virtual DateTime CreationTime { get; set; }

    }
}
